package com.pan.behavioral.visitor.pattern.part;

import com.pan.behavioral.visitor.pattern.Part;
import com.pan.behavioral.visitor.pattern.visit.FrameVisitor;

import javax.swing.*;

public class SetClosePart implements Part {

    @Override
    public void accept(FrameVisitor visitor) {
        visitor.getFrame().setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
    }
}
